//file can not be null